#define _CRT_SECURE_NO_WARNINGS 1

#include "queue.h"

void test1(void)
{
	Queue p;
	Queueinit(&p);
	Queuepush(&p, 1);
	Queuepush(&p, 2);
	Queuepush(&p, 3);
	Queuepush(&p, 4);
	printf("%d ", Queueback(&p));
	printf("%d\n", Queuesize(&p));
	while (!QueueEmpty(&p))
	{
		printf("%d ", Queuefront(&p));
		Queuepop(&p);
	}
	printf("\n");
	QueueDestroy(&p);
	printf("%d ", Queuesize(&p));
}


int main()
{
	test1();
	return 0;
}